package com.hqj.demo;

public class Teacher extends User {
    private static final long serialVersionUID = -202008101125L;
    private Integer workAge;

    public Teacher() {
    }

    public Teacher(String loginName, String userName, String type, String sex, String password, Integer workAge) {
        super(loginName, userName, type, sex, password);
        this.workAge = workAge;
    }

    public Integer getWorkAge() {
        return workAge;
    }

    public void setWorkAge(Integer workAge) {
        this.workAge = workAge;
    }

    @Override
    public String toString() {
        return "老师{" +super.toString()+
                ",workAge=" + workAge +
                '}';
    }
}
